
class CircleQueue{

    public:
        CircleQueue(int capacity);
        virtual ~CircleQueue();
        void clear();
        void isEmpty() const;
        int getLength() const;
        bool append(int element);
        bool remove(int &element);
        void traverse();

    private:
        int * pos;
        int length;
        int capacity;

};